package com.njym.java.security.admin.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 评论表
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-07 14:35:47
 */
@Table(name = "post_comment")
public class PostComment implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //帖子id
    @Column(name = "post_id")
    private Integer postId;
	
	    //评论内容 id
    @Column(name = "pid")
    private Integer pid;
	
	    //评论内容
    @Column(name = "comment_content")
    private String commentContent;
	
	    //用户名字
    @Column(name = "author")
    private String author;

	//头像
	@Column(name = "headImg")
	private String headImg;

	    //用户id
    @Column(name = "authorid")
    private Integer authorid;
	
	    //发表时间
    @Column(name = "dateline")
    private Date dateline;
	
	    //0 评论  1 回复
    @Column(name = "status")
    private Integer status;
	
	    //有效标志
    @Column(name = "deleted")
    private Integer deleted;
	

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：帖子id
	 */
	public void setPostId(Integer postId) {
		this.postId = postId;
	}
	/**
	 * 获取：帖子id
	 */
	public Integer getPostId() {
		return postId;
	}
	/**
	 * 设置：评论内容 id
	 */
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	/**
	 * 获取：评论内容 id
	 */
	public Integer getPid() {
		return pid;
	}
	/**
	 * 设置：评论内容
	 */
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	/**
	 * 获取：评论内容
	 */
	public String getCommentContent() {
		return commentContent;
	}
	/**
	 * 设置：用户名字
	 */
	public void setAuthor(String author) {
		this.author = author;
	}
	/**
	 * 获取：用户名字
	 */
	public String getAuthor() {
		return author;
	}
	/**
	 * 设置：用户id
	 */
	public void setAuthorid(Integer authorid) {
		this.authorid = authorid;
	}
	/**
	 * 获取：用户id
	 */
	public Integer getAuthorid() {
		return authorid;
	}
	/**
	 * 设置：发表时间
	 */
	public void setDateline(Date dateline) {
		this.dateline = dateline;
	}
	/**
	 * 获取：发表时间
	 */
	public Date getDateline() {
		return dateline;
	}
	/**
	 * 设置：0 评论  1 回复
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：0 评论  1 回复
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * 设置：有效标志
	 */
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	/**
	 * 获取：有效标志
	 */
	public Integer getDeleted() {
		return deleted;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
}
